var moment = require('moment');
var _ = require('underscore');
var superagent = require('superagent');

module.exports = function (app) {
  app.get('/mobile/user/[0-9]+/app/[0-9]+/queryAgentSet.json', function (req, res) {
    return res.json({
      "agent": {
        "activitySwitch": true,
        "ajaxSwitch": true,
        "anrSwitch": true,
        "appId": 2252,
        "attributes": ";anrSwitch:true;ajaxSwitch:true;httpHeaderSwitch:true;httpSwitch:true;httperrSwitch:true;webviewSwitch:true;usdur:{\"interval\"#3B60000,\"max\"#3B10};frameRateSwitch:false;activitySwitch:true;",
        "ccLock": 129029,
        "frameRateSwitch": false,
        "gather": true,
        "gmtCreateTime": "2016-02-15 16:32:30",
        "gmtModifyTime": "2016-08-11 10:35:31",
        "httpHeaderSwitch": true,
        "httpSwitch": true,
        "httperrSwitch": true,
        "id": 0,
        "intervals": 0,
        "maxHttpRecord": 0,
        "maxHttpStack": 0,
        "maxInteractTrace": 0.4,
        "threshold": {
          "thresholds": [
            {
              "code": "threshold.http.transaction",
              "meaning": "请求详情记录采集阈值",
              "value": 100
            }
          ]
        },
        "usdur": {
          "interval": 60000,
          "max": 10
        },
        "webviewSwitch": true
      }
    });
  });
};
